[VERSN2]
combobox "Install" "Uninstall" "Select"

"Install"
stop_errors false
speedreflect auto
unlock_memory all

if collection_exists FRONTEND\FRONTB1.LZC TPKBlocks DEFAULT
do
update_collection FRONTEND\FRONTB1.LZC TPKBlocks DEFAULT CollectionName FRONTENDTEXTURES
else
// do nothing
end

import override GLOBAL\GLOBALB.LZC CarTypeInfos Parts\COPREVENT_CTI.bin
import override GLOBAL\GLOBALB.LZC CarTypeInfos Parts\COPREVENTGH_CTI.bin
import override GLOBAL\GLOBALB.LZC Collisions Parts\COPREVENT_C.bin
import override GLOBAL\GLOBALB.LZC Collisions Parts\COPREVENTGH_C.bin
import override GLOBAL\GLOBALB.LZC DBModelParts Parts\COPREVENT_DB.bin
import override GLOBAL\GLOBALB.LZC DBModelParts Parts\COPREVENTGH_DB.bin

add_or_update_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global AUTO CARNAME_LAMBORGHINI_COPREVENT "Lamborghini Reventon Pursuit Unit"
add_or_update_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global AUTO CARNAME_LAMBORGHINI_COPREVENTGH "Lamborghini Reventon Undercover Unit"

add_or_update_string LANGUAGES\LABELS_INGAME.BIN STRBlocks InGame AUTO HUD_COPDESTROYED_COPREVENT "HUD_COPDESTROYED_COPREVENT"
add_or_update_string LANGUAGES\LABELS_INGAME.BIN STRBlocks InGame AUTO HUD_COPDESTROYED_COPREVENTGH "HUD_COPDESTROYED_COPREVENTGH"
add_or_update_string LANGUAGES\ENGLISH_INGAME.BIN STRBlocks InGame AUTO HUD_COPDESTROYED_COPREVENT "LAMBORGHINI REVENTON (PPV)^COMBO BOUNTY: %$d"
add_or_update_string LANGUAGES\ENGLISH_INGAME.BIN STRBlocks InGame AUTO HUD_COPDESTROYED_COPREVENTGH "LAMBORGHINI REVENTON (UCV)^COMBO BOUNTY: %$d"

add_texture FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_COPREVENT Textures\SECONDARY_LOGO_COPREVENT.dds
add_texture FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_COPREVENTGH Textures\SECONDARY_LOGO_COPREVENTGH.dds

if directory_exists absolute CARS\COPREVENT
do // do nothing
else
create_folder absolute CARS\COPREVENT
end 

if directory_exists absolute CARS\COPREVENTGH
do // do nothing
else
create_folder absolute CARS\COPREVENTGH
end 

move_file override relative absolute Model\COPREVENT\GEOMETRY.BIN CARS\COPREVENT\GEOMETRY.BIN
move_file override relative absolute Model\COPREVENT\TEXTURES.BIN CARS\COPREVENT\TEXTURES.BIN
move_file override relative absolute Model\COPREVENTGH\GEOMETRY.BIN CARS\COPREVENTGH\GEOMETRY.BIN
move_file override relative absolute Model\COPREVENTGH\TEXTURES.BIN CARS\COPREVENTGH\TEXTURES.BIN

"Uninstall"
stop_errors false
speedreflect auto
unlock_memory all

remove_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global CARNAME_POLICE_COPREVENT
remove_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global CARNAME_POLICE_COPREVENTGH

remove_string LANGUAGES\ENGLISH_INGAME.BIN STRBlocks InGame HUD_COPDESTROYED_COPCOPREVENT
remove_string LANGUAGES\ENGLISH_INGAME.BIN STRBlocks InGame HUD_COPDESTROYED_COPREVENTGH

remove_texture FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_COPREVENT
remove_texture FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_COPREVENTGH

remove_collection GLOBAL\GLOBALB.LZC CarTypeInfos COPREVENT
remove_collection GLOBAL\GLOBALB.LZC Collisions COPREVENT
remove_collection GLOBAL\GLOBALB.LZC DBModelParts COPREVENT
remove_collection GLOBAL\GLOBALB.LZC CarTypeInfos COPREVENTGH
remove_collection GLOBAL\GLOBALB.LZC Collisions COPREVENTGH
remove_collection GLOBAL\GLOBALB.LZC DBModelParts COPREVENTGH
erase_folder absolute CARS\COPREVENT
erase_folder absolute CARS\COPREVENTGH
end
